<div class="container_12 content-wrapper">
	<div class="grid_9">
	<h2>Book Online</h2> 
	<?php flash();?>
	<?php echo form_open('home/add_booking');?>
	<div class="input-block">
			<label>Select Stylist</label>
			<?php echo form_error('stylistid', '<div class="form-error">', '</div>'); ?>
			<select name="stylistid" class="c_stylist">
				<option></option>
				<?php foreach($stylists as $stylist):?>
					<option value="<?php echo $stylist->id;?>"><?php echo $stylist->firstname.' '.$stylist->lastname;?></option>
				<?php endforeach;?>
			</select>
	</div>
	
	
	
	<div class="input-block">
		<label>Choose Service</label>
		<?php echo form_error('service', '<div class="form-error">', '</div>'); ?>
		<select name="service" class="service">
			<option></option>
			<option value="Appointment">Appointment</option>
		</select>
	</div>
	
	<div class="input-block">
		<label>Appointment Date</label>
		<?php echo form_error('appointment_date', '<div class="form-error">', '</div>'); ?>
		<input type="text" name="appointment_date" class="datepicker dp"/>
		<input type="hidden" name="time_id" id="app_time"/>
		<input type="hidden" name="userid" value="<?php echo $userdata['userid']?>"/>
	</div>
	
	<div class="input-block">
		<label>Additional Notes: </label>
		<textarea name="customer_note"></textarea>
	</div>
	
	<div class="additional_block">
	<?php if(form_error('appointment_time')) echo '<div class="form-error">Please select a time</div>'; ?>
	</div>
	<div class="clear">&nbsp;</div>
		<input type="submit" name="set_appointment" value="Book" class="dbtn" />
		
		

	<?php echo form_close(); ?>
	
	<a href="<?php echo $this->session->userdata('refered_from'); ?>" class="back-btn"><span>Back</span></a>
 	
	
		
	
</div>

   <div class="grid_3">
    	<?php echo $this->load->view('layouts/menu/_customer', TRUE);?>
    </div>
    
    </div>